//
//  PTUIDefine.h
//  PlanTech
//
//  Created by ruifeng song on 2018/7/10.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#ifndef PTUIDefine_h
#define PTUIDefine_h

#define ScreenSize ([UIScreen mainScreen].bounds.size)
/** 设备为iphonex */
#define DEVICE_IS_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
/** 距屏幕上边距离 */
#define TOP_HEIGHT (DEVICE_IS_iPhoneX ? 88 : 64)
/** 距屏幕下边距离 */
#define BOTTOM_HEIGHT (DEVICE_IS_iPhoneX ? 34 : 0)

#define  ScreenWidth ScreenSize.width
#define  ScreenHeight ScreenSize.height

#define PNColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

#define  BaseViewBackgroundColor [UIColor colorWithHexString:@"#f7f7f7"]

//=================FONT===================
#define  PTFONT_15  [UIFont systemFontOfSize:15]
#define  PTFONT_BOLD_15  [UIFont boldSystemFontOfSize:15]
#define  PTFONT_BOLD_18  [UIFont boldSystemFontOfSize:18]
#define  PTFONT_12  [UIFont systemFontOfSize:12]
#define  PTFONT_13  [UIFont systemFontOfSize:13]
#define  PTFONT_BOLD_12  [UIFont boldSystemFontOfSize:12]
#define  PTFONT_17  [UIFont systemFontOfSize:17]
#define  PTFONT_18  [UIFont systemFontOfSize:18]

//=================COLOR==================
#define  PTColor_2e2e2e [UIColor colorWithHexString:@"#2e2e2e"]
#define  PTColor_ff3c08 [UIColor colorWithHexString:@"#ff3c08"]
#define  PTColor_878787 [UIColor colorWithHexString:@"#878787"]
#define  PTColor_349ef7 [UIColor colorWithHexString:@"#349ef7"]
#define  PTColor_d0d0d0 [UIColor colorWithHexString:@"#d0d0d0"]
#define  PTColor_ff3a31 [UIColor colorWithHexString:@"#ff3a31"]
#define  PTColor_f9d300 [UIColor colorWithHexString:@"#f9d300"]
//所有的横线色值
#define  PTColor_e0e0e0 [UIColor colorWithHexString:@"#e0e0e0"]

#endif /* PTUIDefine_h */
